package com.r2dbc.repository;

/*
 *@Description<p></p>
 *@Author gz
 *@CreateTime 2025/8/12 9:45
 *@CopyRight @2021-2025 卓望信息技术（北京）公司
 */

import com.r2dbc.domain.User;
import org.springframework.data.r2dbc.repository.Query;
import org.springframework.data.r2dbc.repository.R2dbcRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Mono;

@Repository
public interface UserRepository extends R2dbcRepository<User, Long> {
    
    @Query("select * from user where id = :id")
    Mono<User> queryUser(@Param("id") Long id);

}